angular.module('faApp')
  .service('fpAccountVoucherService', [ 'ajaxService',function (ajaxService) {

    this.queryAllExistingAccount = function (cfg) {
      return ajaxService.post(ajaxService.getApiUri("QUERY_ALL_EXISTING_ACCOUNT"),cfg || {});
    };

    this.listFpAccountVoucher = function (cfg) {
      return ajaxService.post(ajaxService.getApiUri("QUERY_FP_ACCOUNT_VOUCHER"),cfg || {});
    };
    
    this.detailFpAccountVoucher = function (cfg) {
      return ajaxService.post(ajaxService.getApiUri("QUERY_FP_ACCOUNT_VOUCHER_DETAIL"),cfg || {});
    };

    this.queryAccountVoucherCreateBy = function (cfg) {
      return ajaxService.post(ajaxService.getApiUri("QUERY_ACCOUNT_VOUCHER_CRAETEBY"),cfg || {});
    };

      this.updateFpAccountVoucher = function (cfg) {
      return ajaxService.post(ajaxService.getApiUri("QUERY_FP_ACCOUNT_VOUCHER_UPDATE"),cfg || {});
    };
       this.addFpAccountVoucher = function (cfg) {
      return ajaxService.post(ajaxService.getApiUri("QUERY_FP_ACCOUNT_VOUCHER_ADD"),cfg || {});
    };

}]);